﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace LeafulWeiboSdk.Metadata
{
    public class CommentMetadata : BaseMetadata
    {
        [JsonProperty("created_at")]
        public string CreatedAt { get; internal set; }
        [JsonProperty("id")]
        public string Id { get; internal set; }
        [JsonProperty("text")]
        public string Text { get; internal set; }
        [JsonProperty("source")]
        public string Source { get; internal set; }
        [JsonProperty("user")]
        public UserMetadata User { get; internal set; }
        [JsonProperty("mid")]
        public string Mid { get; internal set; }
        [JsonProperty("status")]
        public StatusMetadata Status { get; internal set; }
        [JsonProperty("reply_comment")]
        public CommentMetadata ReplyComment { get; internal set; }
    }

    public class CommentCollectionMetadata : BaseMetadata
    {
        [JsonProperty("comments")]
        public List<CommentMetadata> Comments { get; set; }
        [JsonProperty("total_number")]
        public int TotalNumber { get; set; }
        [JsonProperty("previous_cursor")]
        public int PreviousCursor { get; set; }
        [JsonProperty("next_cursor")]
        public int NextCursor { get; set; }

    }
}
